package com.liao.product.feign;

import com.liao.common.entity.order.OrdersEntity;
import com.liao.common.utils.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author: ljt
 * @Description: 远程调用订单服务
 * @DateTime: 2025/3/16 上午10:20
 **/
@FeignClient("youyoumall-order")
public interface OrderFeignService {
//
//    @GetMapping("/order/orders/status/{orderId}")
//    R getOrderByOrderId(@PathVariable("orderId") Integer orderId);

    /**
     * 获取订单详情
     */
    @GetMapping("/order/orders/status/{orderId}")
    Result<OrdersEntity> getOrderByOrderId(@PathVariable("orderId") String orderId);

}
